/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package manager;

/**
 *
 * @author perrim
 */
public class Manager {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        String ip_manager = "5.39.79.86";
        //String ip_manager = "127.0.0.1";
        int port = 443;
        
        if ( args.length == 2 )
            port = Integer.decode(args[1]);
        if ( args.length > 0 )
            ip_manager = args[0];
        
        System.out.println("\nAdresse IP du manager :  " + ip_manager );
            
        mediaManager manager = new mediaManager(ip_manager);
        SocketTCPServer server = new SocketTCPServer(manager, port);
    }
}
